package com.haizhi.crm.sys.auth.model;

import com.haizhi.crm.common.model.BaseDo;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by yangyijun on 2018/5/17.
 */
@Data
@NoArgsConstructor
@Entity
@Table(name = "tr_position_role" )
public class PositionRoleDo extends BaseDo {

    @Column(name = "role_id" )
    private Long roleId;

    @Column(name = "position_id" )
    private Long positionId;

    public PositionRoleDo(Long id, Long roleId, Long positionId, Date createdDt, Date updatedDt
            , Long createdById, Long updateById, String enabledFlag) {
        this.id = id;
        this.roleId = roleId;
        this.positionId = positionId;
        this.createdDt = createdDt;
        this.updatedDt = updatedDt;
        this.createdById = createdById;
        this.updateById = updateById;
        this.enabledFlag = enabledFlag;
    }
}
